package com.ww.springboot.boot.baseTest.design.装饰.son.su;

import com.ww.springboot.boot.baseTest.design.装饰.ComponentService;

public class AbstractDecorator implements ComponentService {

	private ComponentService component;
	
	public AbstractDecorator(ComponentService component){
        this.component = component;   
    }   
	
	
	public void preSay() {
		
	}
	public void afterSay(){
	
	}
	
	@Override
    public void say(){
        preSay();   
        component.say();   
        afterSay();      
    };   
	
}